package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.mediator;

public class Market implements Department {
//    持有中介者的引用
    private Mediator m;

    public Market(Mediator m) {
        super();
        this.m = m;
        m.register("market",this);
    }

    @Override
    public void selfAction() {
        System.out.println("市场调研");
    }

    @Override
    public void outAction() {
        System.out.println("汇报工作：项目承接进度，需要资金支持");
        m.command("finacial");
    }
}
